<template>
	<view class="botton_btn_box">
		<view class="bottom_btn_line"></view>
		<view class="bottom_btn">
			<view class="bottom_btn_item" @click="onGoTo">
				录入
			</view>
		</view>
		<sww-login />
	</view>
</template>

<script>
	export default {
		props: {
			type: { //1微信 //2支付宝
				type: String,
				default: '1'
			}
		},
		data() {
			return {

			};
		},

		onLoad() {

		},
		onShow() {

		},
		methods: {
			onGoTo() {
				let {
					type,
					$to
				} = this
				if (type == 2) this.$to(`/package/supplierSide/paymentChannel/alipay/applyForm/index`)
				if (type == 1) this.$to(`/package/supplierSide/paymentChannel/weChat/applyForm/index`)
			}
		}
	};
</script>

<style lang="scss" scoped>
	.botton_btn_box {
		.bottom_btn {
			padding: 0 26rpx;
			width: 750rpx;
			position: fixed;
			bottom: 0;
			padding-bottom: env(safe-area-inset-bottom);
			background-color: #ffffff;

			.bottom_btn_item {
				width: 100%;
				height: 100rpx;
				background-color: #0090FF;
				color: #ffffff;
				display: flex;
				align-items: center;
				justify-content: center;
			}
		}

		.bottom_btn_line {
			width: 100%;
			height: calc(100rpx + env(safe-area-inset-bottom));
		}
	}
</style>
